package com.lzs.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ymx
 * @since 2020-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("i_purchase")
@ApiModel(value="Purchase对象", description="")
public class Purchase implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "采购订单编号")
    private String purchaseno;

    @ApiModelProperty(value = "供应商id")
    private Long supplierid;

    @ApiModelProperty(value = "供应商名称")
    private String suppliername;

    @ApiModelProperty(value = "商品总数量")
    private Integer commoditynum;

    @ApiModelProperty(value = "预计到货时间")
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone="GMT+8")
    private Date estimatearrivaltime;

    @ApiModelProperty(value = "仓库id")
    private Long warehouseid;

    @ApiModelProperty(value = "仓库名称")
    private String warehousename;

    @ApiModelProperty(value = "状态(0未审核，1待审核，2已审核)")
    private String state;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人id")
    private Long createid;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createtime;

    @ApiModelProperty(value = "修改人id")
    private Long updateid;

    @ApiModelProperty(value = "修改人")
    private String updator;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date updatetime;

    @ApiModelProperty(value = "审核人id")
    private Long auditid;

    @ApiModelProperty(value = "审核人")
    private String auditor;

    @ApiModelProperty(value = "审核时间")
    private Date audittime;

//    @TableLogic
//    private Integer isdelete;

}
